package com.souche.employment.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * 
 * BaseController.java created at 2017年8月8日 下午1:11:20
 * @author Ray [email:rayinhangzhou@hotmail.com]
 * Revision History
 * Date            Programmer                   Notes
 * ----------------------------------------------------------
 **/

@Controller
public class PageController {

	@RequestMapping(value = "/")
	public ModelAndView pageMain(ModelAndView mav) {
		mav.setViewName("/pages/main.html");
		return mav;
	}

	@RequestMapping(value = "/login")
	public ModelAndView pageLogin(ModelAndView mav) {
		mav.setViewName("/pages/login.html");
		return mav;
	}
	
	@RequestMapping(value = "/work/{page}")
	public ModelAndView getCompanyPage(@PathVariable String page, ModelAndView mav) {
		mav.setViewName("/pages/work/"+page+".html");
		return mav;
	}
	

	
	
}
